package tech.aistar.corejava.day13;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author success
 * @version 1.0
 * @description:本类用来演示:桥接器 - 获取键盘的输入.
 *
 *                             编码:字符->字节
 *                             解码:字节->字符
 * @date 2019/8/2 0002
 */
public class InputStreamReaderDemo {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        System.out.println("请您输入:>");

        try {
            String  line = br.readLine();

            System.out.println("line:"+line);
        } catch (IOException e) {
            e.printStackTrace();
        }


    }
}
